<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      body {
        background-color: greenyellow;
      }
      h2 {
        background-color: orange;
      }
    </style>
    <title>Document</title>
  </head>
  <body>
    <h2>我是自己写的页面</h2>
    <button>测试mk 对象的功能</button>
    <script>
      document.querySelector('button').addEventListener('click', async function () {
        // mk.sayHi({ name: '么么哒', food: '隆江猪脚饭'
        // const res = mk.sendMessage()
        // console.log(res)
        // document.querySelector('h2').innerHTML=JSON.stringify(res)
        //获取用户信息
        // console.log(mk.queryUser())
        //删除用户信息
        // mk.removeUser()
        //测试相机逻辑
        // const res = await mk.pickerCamera()
        // console.log(res)

        // 测试抖动
        // mk.vibrator()

        // 获取 省市区数据
        const res = await mk.getAreaColumns()
        console.log(res)
      })
    </script>
    <!-- 引入调试控制台 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/eruda/3.0.1/eruda.min.js"></script>
    <script>
      eruda.init()
    </script>
  </body>
</html>
